import http from "../../common/http.js"

export const grouplist = (url, data) => {
	return http({
		url: 'api/my_group/' + url
	}, data)
}
export const rules = (url, data) => {
	return http({
		url: 'api/agreement/' + url
	}, data)
}
export const coins = (url, data) => {
	return http({
		url: 'api/personal_center/' + url
	}, data)
}
export const awards = (url, data) => {
	return http({
		url: 'api/Draw/' + url
	}, data)
}

// 支付
export const pays = (url, data) => {
	return http({
		url: 'api/pay/' + url
	}, data)
}
// 开通会员
export const vips = (url, data) => {
	return http({
		url: 'api/membership/' + url
	}, data)
}

// 上传
export const upload = (data) => {
	return http({
		url: 'api/user_authentication/upload'
	}, data)
}
//认证
export const fourelements = (data) => {
	return http({
		url: 'api/user_authentication/fourelements'
	}, data)
}
//认证反显
export const authenticationInfo = (data) => {
	return http({
		url: 'api/user_authentication/authenticationInfo'
	}, data)
}
//修改认证
export const editfourelements = (data) => {
	return http({
		url: 'api/user_authentication/editfourelements'
	}, data)
}
//提现
export const userCashWithdrawal = (data) => {
	return http({
		url: 'api/cash_withdrawal/userCashWithdrawal'
	}, data)
}
//提现额度
export const quotaInfo = () => {
	return http({
		url: 'api/cash_withdrawal/quotaInfo'
	})
}
// 提现记录
export const withdrawalRecordList = (data) => {
	return http({
		url: 'api/cash_withdrawal/withdrawalRecordList'
	}, data)
}
//充值
export const balancerecharge = (data) => {
	return http({
		url: 'api/recharge/balancerecharge'
	}, data)
}
//充值记录
export const record = (data) => {
	return http({
		url: 'api/recharge/record'
	}, data)
}
//  反馈类型
export const suggestType = () => {
	return http({
		url: "api/Feedbackt/getFeedbacktType"
	})
}
//  发送我的反馈
export const sendSuggest = (data) => {
	return http({
		url: "api/Feedbackt/saveFeedbackt"
	}, data)
}

//  获取我的反馈列表
export const getSuggestList = () => {
	return http({
		url: "api/Feedbackt/getFeedbacktList"
	})
}

//会员开通记录
export const getUserMembershipList = (data) => {
	return http({
		url: 'api/membership/getUserMembershipList'
	}, data)
}

//会员记录详情
export const getUserMembershipRecord = (data) => {
	return http({
		url: 'api/membership/getUserMembershipRecord'
	}, data)
}
// 会员商品列表
export const vipShopList = (data) => {
	return http({
		url: 'api/membership/getGiveGoodsInfo'
	}, data)
}
export const couponsTotalAccount = (data) => {
	return http({
		url: 'api/membership/getCouponsTotalAccount'
	}, data)
}